home *** CD-ROM | disk | FTP | other *** search
- Path: sooner.net!usenet
- From: Eddie Bush <edwbush@sooner.net>
- Newsgroups: comp.lang.c
- Subject: Re: Passing Function Pointers
- Date: Wed, 03 Apr 1996 02:10:09 -0800
- Organization: sooner.net news site
- Message-ID: <31624E81.734E@sooner.net>
- References: <315E7284.479F@sooner.net> <4jn0m3$1ae@sparcserver.lrz-muenchen.de>
- NNTP-Posting-Host: p22.sooner.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Kurt Watzka wrote:
- > fn is a pointer to int. *fn is an int, i.e. _not_ a function so
- > if your compiler tells you that you are calling a non-function,
- > why don't you trust it?Because it was very late. I was very tired, and -- for some reason
- unknown to me, decided the compiler didn't support it. Have you never
- done that? ...especially with something simple.
-
- > Well, all versions of gcc available to me do not allow calling an
- > int as a function. Are you abolutely sure that your functions
- > signature did not look suspiciously similar to
- >
- > void delete (list *my_list, int (*fn)(l_node));
- >
-
- Yes -- I finally found that old database code, and you are right. >DUH<
-
- > Hint: If you make claims about a certain compiler, be sure it is
- > Frolic C, available on the Frozzietec CD 6400 only. Otherwise, there
- > might be someone reading your article who has access to that compiler.
- >
- > Kurt
-
- Kurt,
- I appreciate your help, but I do __not__ appreciate the
- implications that you are tossing. Though I am probably far from being
- the best person around when it comes to understanding different
- techniques, I feel that I am not that bad. Do you really find it
- necessary to try and belittle people when they happen to make a mistake?
- That seems ___very___ unprofessional and immature to me. I am sorry you
- feel the need to place yourself above others. Maybe, one of these days,
- you will find it within yourself to simply help raise people and
- enlighten them to the truth --- rather than chastise them for being
- wrong. You would be surprised how much better positive-reinforcement can
- be
-
- Sincerely,
-
- Eddie Bush
-